﻿<%@ Control Language="C#" Inherits="Web.Control.WWW.Group.MyGroups" %>
<asp:Literal ID="litCount" Text="15" runat="server" Visible="false"/>
<input type="hidden" name="LeaveGID" value="0" id="LeaveGID" />
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><%=GetText("GP001")%></h1>
							</div>
							<div class="submenuN_button" style="top:30"><%if (((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm){%><a class="naddbtn btnspec" href="/groups/create-group.htm" style="text-decoration:none"><%}else{ %><a class="naddbtn btnspec" href="#" onclick="NotAffirm()" style="text-decoration:none"><%} %><span>&nbsp;&nbsp;&nbsp;<%=GetText("GP200")%>&nbsp;&nbsp;&nbsp;</span></a></div>
						</div>
					</div>
				</div>
				<div>
						<ul class="sort_sel">
							<li class="selATags first"><a href="javascript:void(0);"><span><%=GetText("AS144")%></span></a></li>
							<li class=""><a href="<%=WWWHost %>/groups/friends-groups.htm"><span><%=GetText("AS145")%></span></a></li>
						</ul>
						<div class="clear"></div>
				</div>
				<div class="Center9001n">
					<div class="Center9001Right">
						<div class="Center9001Content">
						<div class="group_area">
							<p><%=GetText("GP005",new string[]{RecordCount.ToString()})%></p>
							<div id="myList">
								<asp:Repeater ID="gList" runat="server">
									<ItemTemplate>
										<div class="Default_list">
											<div class="Default_list_left">												
												<div class="pic75"><%#Eval("ImgUrlPath").ToString() == "" ? "<a class='photo_75' href='" + WWWHost + "/groups/" + Eval("GID").ToString() + "'><img src=\"/Images/No_pic100.gif\" border='0' alt=\"" + HttpUtility.HtmlAttributeEncode(Eval("Title").ToString()) + "\"/></a>" : "<a class='photo_75' href='" + WWWHost + "/groups/" + Eval("GID").ToString() + "'><img src=\"/UploadImages/Groups/" + Eval("GroupID").ToString() + "_2.jpg\" border='0' alt=\"" + HttpUtility.HtmlAttributeEncode(Eval("Title").ToString()) + "\"/></a>"%></div>
											</div>
											<div class="Default_list_right">
												<div class="default_list_right1">
													<div class="text14 right1_title_break"><a href="<%#WWWHost%>/groups/<%#Eval("GID").ToString()%>" title="<%#HttpUtility.HtmlAttributeEncode(Eval("Title").ToString()) %>"><%#Lx.Web.Common.UI.Globals.GetString(Eval("Title").ToString(),50)%></a></div>
													<div class="margin5 grey11"><%#GP012%>: <%#Eval("GroupType").ToString() == "1" ? "<A href='/groups/learn-all-1-1-1.htm'>" + GP013 + "</a>" : (Eval("GroupType").ToString() == "2" ? "<A href='/groups/learn-all-2-1-1.htm'>" + GP014 + "</a>" : "<A href='/groups/all-3-1-1.htm'>" + C0087 + "</a>")%> - <%#Eval("GroupType").ToString() != "3" ? (BLF.StaticData.HaveLanguageImage(Eval("Language1").ToString()) ? Eval("Language1", "<a href='" + WWWHost + "/groups/learn-" + Eval("Language1") + "-0-1-1.htm'><img src=\"/images/language_{0}.gif\" border='0' title='" + string.Format(C0105, BLF.StaticData.GetLanguageText(Eval("Language1").ToString())) + "' align='absmiddle' /></a> ") : "") + "<a href='" + WWWHost + "/groups/learn-" + Eval("Language1") + "-0-1-1.htm'>" + string.Format(C0105,BLF.StaticData.GetLanguageText(Eval("Language1").ToString())) + "</a>" : (BLF.StaticData.HaveLanguageImage(Eval("Language2").ToString()) ? Eval("Language2", "<a href='" + WWWHost + "/groups/" + Eval("Language2") + "-3-1-1.htm'><img src=\"/images/language_{0}.gif\" border='0' title='" + string.Format(C0105, BLF.StaticData.GetLanguageText(Eval("Language2").ToString())) + "' align='absmiddle' /></a> ") : "") + "<a href='" + WWWHost + "/groups/" + Eval("Language2") + "-3-1-1.htm'>" + string.Format(C2018, BLF.StaticData.GetLanguageText(Eval("Language2").ToString())) + "</a>"%>
														<br /><%#GP016%>: <%#string.Format(GP006,Eval("Members").ToString())%>
														<br /><span class='txt_bg'><%#GP041%>: <%#string.Format(GP006,Eval("NewMembers").ToString())%>, <%#string.Format(GP008,Eval("Topics").ToString())%></span>
													</div>
												</div>
												<div class="default_list_right2">
													<div><%#Eval("Memberno").ToString() == Memberno ? "<a href='" + WWWHost + "/groups/editgroup/" + Eval("GID").ToString() + ".htm' ><img src=\"/Images/icon_common_edit.gif\" border='0' align='absmiddle' /></a> <a href='" + WWWHost + "/groups/editgroup/" + Eval("GID").ToString() + ".htm' >" + GP206 + "</a>" : "<a href='javascript:void(0);' onclick='LeaveGroup(\"" + Eval("GID").ToString() + "\",\"" + Eval("Title").ToString().Replace("\"", "$s$").Replace("\'", "$d$") + "\")'><img src=\"/Images/icon_group_leave.gif\" border='0' align='absmiddle'  /></a> <a href='javascript:void(0);' onclick='LeaveGroup(\"" + Eval("GID").ToString() + "\",\"" + Eval("Title").ToString().Replace("\"", "$s$").Replace("\'", "$d$") + "\")'>" + GetText("GP207") + "</a>"%></div>
												</div>
												<div class="clear"></div>
											</div>
											<div class="clear"></div>
										</div>
									</ItemTemplate>
								</asp:Repeater>
								<div class="clear"></div>
							</div>
							<div id="divPage" class="page_num">
							<%=CreatePageNav(RecordCount, int.Parse(litCount.Text), PageIndex, "",
								string.Format("<span class='page_none grey10'><a href='{0}/groups/my-groups-$I$.htm'>{1}</a></span>&nbsp;", WWWHost,HttpUtility.UrlEncode(GetText("Prev"))),
								"",
								string.Format("<span class='page_none grey10'><a href='{0}/groups/my-groups-$I$.htm'>{1}</a></span>&nbsp;", WWWHost,HttpUtility.UrlEncode(GetText("Next"))),
								string.Format("<span class='page_select'>{0}</span>&nbsp;", PageIndex),
								string.Format("<span class='page_none grey10'><a href='{0}/groups/my-groups-$I$.htm'>$I$</a></span>&nbsp;",WWWHost)
							)%>									
							</div>							
						</div>
						</div>
					</div>
					<div class="Center9001Left">
						<div class="right_layerA">
							<%if(rptTopic.Items.Count>0) {%>
							<div class="layer_contentA">
								<h4>Latest topics in my groups</h4>
								<div class="layer_contentA5">
								<asp:Repeater ID="rptTopic" runat="server">
									<ItemTemplate>
										<div class="common_right_pic_list">
											<div class="common_right_pic_listPIC"><div class="picsp"><a class="photo_sp" href="<%#WWWHost%>/<%#Eval("Memberno") %>.htm"><%#Eval("Avatar").ToString() == "" ? "<img src=\"/Images/No_pic.gif\" alt=\"" + HttpUtility.HtmlAttributeEncode(Eval("NickName").ToString()) + "\"/>" : "<img src=\"" + Eval("Avatar").ToString()+ "\" alt=\"" + HttpUtility.HtmlAttributeEncode(Eval("NickName").ToString()) + "\"/>"%></a></div></div>
											<div class="common_right_pic_listCON"><a href="<%#WWWHost%>/groups/<%#Eval("GID") %>/topic/<%#Eval("FID") %>.htm"><%#HttpUtility.HtmlAttributeEncode(Eval("Title").ToString())%></a> <span class="grey12" dir="ltr">(<%#Eval("Topics")%>)</span></div>
											<div class="clear"></div>
										</div>
									</ItemTemplate>
								</asp:Repeater>	
								</div>
							</div>
							<%} %>
						</div>
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<div id="body_right">
			</div>
			<div class="clear">
			</div>
		</div>
		<div id="body_900F">
		</div>
	</div>
</div>
<script>
var GP115 = '<%=GetText("GP115") %>';
var GP230="<%=GetText("GP230") %>";
var C0056 = "<%=GetText("C0056") %>";
var leaveTitle="<%=GetText("GP053")%>";
</script>